POV-Ray : Newsgroups : povray.binaries.images : Isosurface help? : Re: Isosurface help? Server Time
7 Nov 2024 13:36:49 EST (-0500)
  Re: Isosurface help?  
From: Slime
Date: 1 Aug 2004 03:23:10
Message: <410c9a5e@news.povray.org>
x*(.5-y/6)

You're on the right track with that. Try this:

x-y/6

and you'll find that you have a quadrilateral block. Now you just need to
mirror that across the center. One way to do this is:

abs(x)-y/6

which only works because the block starts off symmetrical. An alternative
option is:

x - sign(x)*y/6

where sign(x) is defined as (untested code):

#declare sign = function(x) {select(x,-1,1)}

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.